<?php
	class Menu
	{
		private $cells = array();
		private $biggestRow;
		private $biggestColumn;
		
		public function __construct() {
			//to avoid math-check on null
			$this->biggestRow = -1;
			$this->biggestColumn = -1;
		}
		
		public function addCell($cell, $row, $column) {
			//TODO: add type check..
			$this->cells[$row][$column] = $cell;
			
			if($row > $this->biggestRow) {
				$this->biggestRow = $row;
			}
			
			if($column > $this->biggestColumn) {
				$this->biggestColumn = $column;
			}
		}
		
		public function getCells() {
			return $this->cells;
		}
		
		public function getBiggestColumn() {
			return $this->biggestColumn;
		}
		
		public function getBiggestRow() {
			return $this->biggestRow;
		}
	}
?>